<include file="header" />
<body>
<div class="wraper">
    <div class="load">
        <img class="load-bee" src="/assets/base/restaurant/images/load-bee.png"/>

    </div>
    <div class="top">
        <p>
            <a href="/Zyyirs/irs/index/irs_id/{BEESCRM:$irs_id}" class="iconfont icon-zuo pull-left"></a>
	        <if condition="$type eq 0">
		        <a href="javascript:void(0)" class="order-all pull-left">全部订单<span class="iconfont icon-you xiajiantou"></span></a>
	        </if>
            <if condition="$type eq 1">
		        <a href="javascript:void(0)" class="order-all pull-left">待付款<span class="iconfont icon-you xiajiantou"></span></a>
	        </if>
            <if condition="$type eq 2">
		        <a href="javascript:void(0)" class="order-all pull-left">待领取<span class="iconfont icon-you xiajiantou"></span></a>
	        </if>
            <if condition="$type eq 3">
		        <a href="javascript:void(0)" class="order-all pull-left">已领取<span class="iconfont icon-you xiajiantou"></span></a>
	        </if>
            <if condition="$type eq 4">
		        <a href="javascript:void(0)" class="order-all pull-left">已评价<span class="iconfont icon-you xiajiantou"></span></a>
	        </if>
	        <if condition="$type eq 5">
		        <a href="javascript:void(0)" class="order-all pull-left">已取消<span class="iconfont icon-you xiajiantou"></span></a>
	        </if>
	        <if condition="$type eq 6">
		        <a href="javascript:void(0)" class="order-all pull-left">已关闭<span class="iconfont icon-you xiajiantou"></span></a>
	        </if>
        </p>
    </div>
    <div class="order-type">
        <p class="close"><span class="iconfont icon-guanbi"></span></p>
        <a href="/Zyyirs/Irs/myOrder/type/0/irs_id/{BEESCRM:$irs_id}">全部订单</a>
        <a href="/Zyyirs/Irs/myOrder/type/1/irs_id/{BEESCRM:$irs_id}">待付款</a>
        <a href="/Zyyirs/Irs/myOrder/type/2/irs_id/{BEESCRM:$irs_id}">待领取</a>
        <a href="/Zyyirs/Irs/myOrder/type/3/irs_id/{BEESCRM:$irs_id}">已领取</a>
        <a href="/Zyyirs/Irs/myOrder/type/4/irs_id/{BEESCRM:$irs_id}">已评价</a>
        <a href="/Zyyirs/Irs/myOrder/type/5/irs_id/{BEESCRM:$irs_id}">已取消</a>
	    <a href="/Zyyirs/Irs/myOrder/type/6/irs_id/{BEESCRM:$irs_id}">已关闭</a>
    </div>
	<volist name="data" id="vo">
    <div class="order-lists lists">
        <div class="lists tb-mode">
            <a href="javascript:void(0)" class="tb-cell list-left">{BEESCRM:$vo.restaurant_name}</a>
            <div class="tb-cell list-right status">
	            <if condition="$vo['status'] eq 2 || $vo['status'] eq 4">交易成功</if>
            </div>
        </div>
        <div class="lists tb-mode foods">
            <a href="javascript:void(0)" class="tb-cell list-left">
                <div class="img-box"><img src="{BEESCRM:$vo.good_info.goods_logo}"></div>
            </a>
            <a href="/Zyyirs/irs/orderDetail/order_id/{BEESCRM:$vo.order_id}/irs_id/{BEESCRM:$irs_id}" class="tb-cell list-center">
                <p>点了 {BEESCRM:$vo.good_info.goods_name} &nbsp;&nbsp;
	                等{BEESCRM:$vo.good_info.good_number}样菜</p>
                <p class="prize">{BEESCRM:$vo.money_sum}元</p>
            </a>
        </div>
        <div class="lists tb-mode bottom-none">
            <p class="tb-cell list-left time" style="width: 10%;">创建时间{BEESCRM:$vo.create_time|date="Y-m-d H:i",###}</p>
	        <if condition="$vo.status eq 4">
                <div class="tb-cell list-right">
                    <span class="order-btn cancle">已评价</span>
                </div>
		    </if>
	        <if condition="$vo.status eq 2">
                <div class="tb-cell list-right">
                    <a href="javascript:void(0);" class="order-btn pinjia" data-id="{BEESCRM:$vo.restaurant_id}" data-order_id="{BEESCRM:$vo.order_id}">评价</a>
                </div>
		    </if>
	        <if condition="$vo.status eq 1">
		        <div class="tb-cell list-right">
                    <a href="/index.php?g=Zyyirs&m=irs&a=orderCode&order_id={BEESCRM:$vo.order_id}&irs_id={BEESCRM:$irs_id}" class="order-btn success" data-order_id="{BEESCRM:$vo.order_id}">去领取</a>
                </div>
	        </if>
	        <if condition="$vo.status eq 0">
		        <div class="tb-cell list-right">
                    <a href="javascript:void(0);" class="order-btn cancle reset" data-order_id="{BEESCRM:$vo.order_id}">取消</a>
                    <a href="/index.php?g=Zyyirs&m=irs&a=confirmOrders&order_id={BEESCRM:$vo.order_id}&irs_id={BEESCRM:$irs_id}" class="order-btn success" data-order_id="{BEESCRM:$vo.order_id}">去付款</a>
                </div>
	        </if>
	        <if condition="$vo.status eq 7">
		        <div class="tb-cell list-right"><a class="order-btn cancle">已取消</a></div>
	        </if>
	        <if condition="$vo.status eq 8">
		        <div class="tb-cell list-right"><a class="order-btn cancle">已关闭</a></div>
	        </if>
        </div>
    </div>
	</volist>

	<div class="pop-box" id="order-comment">
		<div class="main comment-box">
			<div class="top">
				<p>
					<a href="javascript:void(0);" class="iconfont icon-guanbi pull-left" id="pj-close"></a>
					<a href="#" class="order-all pull-left">发表评价</a>
				</p>
			</div>
			<div class="block-opacity block-bg">
				<p class="bow"><img src="/assets/irs/images/bow.png"></p>
				<p>评论一下，消消食~</p>
			</div>
			<div class="lists">
				<p class="stars star1">
					口味：
					<span class="iconfont icon-xingxing star big-star grey-star"></span>
					<span class="iconfont icon-xingxing star big-star grey-star"></span>
					<span class="iconfont icon-xingxing star big-star grey-star"></span>
					<span class="iconfont icon-xingxing star big-star grey-star"></span>
					<span class="iconfont icon-xingxing star big-star grey-star"></span>
				</p>
			</div>

			<div class="lists">
				<p class="stars star2">
					质量：
					<span class="iconfont icon-xingxing star big-star grey-star"></span>
					<span class="iconfont icon-xingxing star big-star grey-star"></span>
					<span class="iconfont icon-xingxing star big-star grey-star"></span>
					<span class="iconfont icon-xingxing star big-star grey-star"></span>
					<span class="iconfont icon-xingxing star big-star grey-star"></span>
				</p>
			</div>

			<div class="lists tb-mode">
				<p class="stars tb-cell" style="width: 36px;">内容：</p>
				<textarea placeholder="请输入内容" class="tb-cell pj-nr" id="comment" maxlength="330"></textarea>
			</div>
			<input class="rstid" type="hidden">
			<input class="order_id" type="hidden">
			<a href="javascript:void(0);" class="pj-btn">确认提交</a>
		</div>
	</div>
	<input class="irs_id" type="hidden" value="{BEESCRM:$irs_id}">
    <div class="btn-box">
        <a href="/Zyyirs/irs/index/irs_id/{BEESCRM:$irs_id}" class="btn"><span class="iconfont icon-weiwaimai"></span> 预订餐</a>
        <a href="/Zyyirs/irs/myOrder/irs_id/{BEESCRM:$irs_id}" class="btn actived"><span class="iconfont icon-dingdan"></span> 我的订单</a>
    </div>
</div>

<include file="commonJS" />
<script src="/assets/zyyirs/js/order.js"></script>
<script src="/assets/activity/vote/js/modalEffects.js"></script>
<script>
	$('#pj-close').click(function(){
		$('.pop-box').hide();
	})
</script>
</body>
</html>
